-- GENERATED SPELL FOR [Loguhn] --


function spell0_26196(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_26196', 566, 1)
end

function spell1_26196(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(50370,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26196', 15301, 1)
end

function Sorts_26196(pUnit, Event)
local choix_sorts_26196 = math.random(0, 1)
if choix_sorts_26196 == 0 then
pUnit:RegisterEvent('spell0_26196', 1, 1)
end
if choix_sorts_26196 == 1 then
pUnit:RegisterEvent('spell1_26196', 1, 1)
end
end

function mob26196_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26196', math.random(1500, 3000), 1)
end

function mob26196_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26196_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26196_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26196, 1, 'mob26196_Action')
RegisterUnitEvent(26196, 2, 'mob26196_Leave')
RegisterUnitEvent(26196, 3, 'mob26196_Kill')
RegisterUnitEvent(26196, 4, 'mob26196_Die')
